package co.com.umobile.security;

/**
 * Authentication response entity.
 * @author sergiogranada
 * 
 */
public class UserSession {

  /** the user id. */
  private String userCode;

  /** the user password. */
  private String password;

  /** the current authentication time. */
  private Long dateAuthentication;

  /** the session Id. */
  private String sessionId;
  
  private int userType;
  
  private String userTypeDescription;
  
  /** user name position. */
  public static final int USERNAMEPOS = 0;

  /** password position. */
  public static final int PASSWORDPOS = 1;

  /** date authentication position. */
  public static final int DATEAUTHENTICATIONPOS = 2;

  /** user type position. */
  public static final int USERTYPE = 3;

  /** user short name position. */
  public static final int USERTYPEDESCRIPTION = 4;

/**
 * @return the userCode
 */
public String getUserCode() {
	return userCode;
}

/**
 * @param userCode the userCode to set
 */
public void setUserCode(String userCode) {
	this.userCode = userCode;
}

/**
 * @return the password
 */
public String getPassword() {
	return password;
}

/**
 * @param password the password to set
 */
public void setPassword(String password) {
	this.password = password;
}

/**
 * @return the dateAuthentication
 */
public Long getDateAuthentication() {
	return dateAuthentication;
}

/**
 * @param dateAuthentication the dateAuthentication to set
 */
public void setDateAuthentication(Long dateAuthentication) {
	this.dateAuthentication = dateAuthentication;
}

/**
 * @return the sessionId
 */
public String getSessionId() {
	return sessionId;
}

/**
 * @param sessionId the sessionId to set
 */
public void setSessionId(String sessionId) {
	this.sessionId = sessionId;
}

/**
 * @return the userType
 */
public int getUserType() {
	return userType;
}

/**
 * @param userType the userType to set
 */
public void setUserType(int userType) {
	this.userType = userType;
}

/**
 * @return the userTypeDescription
 */
public String getUserTypeDescription() {
	return userTypeDescription;
}

/**
 * @param userTypeDescription the userTypeDescription to set
 */
public void setUserTypeDescription(String userTypeDescription) {
	this.userTypeDescription = userTypeDescription;
}

}
